/*
 * @Author: humengchuan 531537052@qq.com
 * @Date: 2024-09-10 17:46:21
 * @LastEditors: humengchuan 531537052@qq.com
 * @LastEditTime: 2024-09-11 17:41:31
 * @FilePath: \projecte:\学习\react\my-react-frameworke\src\App.tsx
 * @Description: 
 */
import React from 'react';
import logo from './logo.svg';
import './App.css';
import { getUserInfo, getUserList } from './api/test';
import { useEffect } from 'react';
import Button from './components/Button/button';
import { buttonType, buttonSize } from './components/Button/button'

function App() {
  useEffect(() => {
    getUserInfo({}).then(res => {
      console.log('app-page-------', res)
    })
    getUserList({}).then(res => {
      console.log('app-page-list-------', res)
    })
    // axios.get('/api/getInfo').then(res => {
    //   console.log('16---res', res);
    // });
  }, [])

  return (
    <div className="App">
      <header className="App-header">
        <img src={logo} className="App-logo" alt="logo" />
        <p>
          Edit <code>src/App.tsx</code> and save to reload.
        </p>
        <Button type={buttonType.Primary}>Button</Button>
        <Button size={buttonSize.Large}>Button2</Button>
        <Button className={'btn-default'}>Button3</Button>
        <a
          className="App-link"
          href="https://reactjs.org"
          target="_blank"
          rel="noopener noreferrer"
        >
          Learn React
        </a>
      </header>
    </div>
  );
}

export default App;
